package com.bbz.crawler.core.commen.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author binbin.a.zhang123
 * @since 2018-05-29
 */
@TableName("crawler_proxy_ip")
public class CrawlerProxyIp extends Model<CrawlerProxyIp> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * IP
     */
    private String ip;
    /**
     * IP 端口
     */
    private String port;
    /**
     * 服务器地址
     */
    private String ipaddress;
    /**
     * IP类型
     */
    private String type;
    /**
     * 验证时间
     */
    @TableField("valida_date")
    private String validaDate;
    /**
     * 是否存活，0存活，1失效
     */
    private Integer flage;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getIpaddress() {
        return ipaddress;
    }

    public void setIpaddress(String ipaddress) {
        this.ipaddress = ipaddress;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValidaDate() {
        return validaDate;
    }

    public void setValidaDate(String validaDate) {
        this.validaDate = validaDate;
    }

    public Integer getFlage() {
        return flage;
    }

    public void setFlage(Integer flage) {
        this.flage = flage;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CrawlerProxyIp{" +
        "id=" + id +
        ", ip=" + ip +
        ", port=" + port +
        ", ipaddress=" + ipaddress +
        ", type=" + type +
        ", validaDate=" + validaDate +
        ", flage=" + flage +
        "}";
    }
}
